<div class="advertising_design col-md-12 col-sm-12 col-xs-12 module_left">
    <div class="title_caption_right">
        <?php if($category_id == 2) { $id_cate=5;}
        else if($category_id == 7) { $id_cate=10;} ?>
        <h2>
            <a href="<?php echo get_category_link($id_cate); ?>"> <span><?php echo get_the_category_by_ID($id_cate); ?></span></a>
        </h2>
    </div>
    <div class="row">
        <div class="module_left_inner">
            <?php
                $args=array("post_per_pages"=>3, "cat"=>$id_cate);
                $wp_query = new WP_Query( $args );
                if ( have_posts() ) : while (have_posts()) : the_post();
            ?>
            <div class="advertising_design_item col-md-4 col-sm-4 col-xs-12">
                <div class="advertising_design_item_img">
                    <a href="<?php the_permalink()?>" title="<?php the_title();?>">
                        <?php
                        $args=array('alt'=>get_the_title());
                        the_post_thumbnail('full',$args); ?>
                    </a>
                    <div class="meta_date">
                        <span class="n_day"><?php the_time('d');?></span>
                        <span class="n_month"><?php the_time('m');?></span>
                    </div><!-- END META DATE -->
                </div><!-- END AD IMAGES -->
                <div class="advertising_design_item_content">
                    <h3 class="left_title">
                        <a href="<?php the_permalink()?>" title="<?php the_title();?>">
                            <?php
                            $trimtitle = get_the_title();
                            echo $shorttitle = wp_trim_words( $trimtitle, $num_words = 12, $more = '… ' );
                            ?>
                        </a>
                    </h3>
                    <p><?php echo get_limit_content(100);?></p>
                    <a class="view_more" href="<?php the_permalink()?>"><span></span>xem thêm</a>
                </div><!-- END AD CONTENT -->
            </div><!-- END AD ITEM -->
            <?php
                endwhile; endif;
                wp_reset_query();
            ?>
        </div>
    </div>
</div>